package io.sage.modules.exam.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SimulationExaminationExample {
    /**
     * e_simulation_examination
     */
    protected String orderByClause;

    /**
     * e_simulation_examination
     */
    protected boolean distinct;

    /**
     * e_simulation_examination
     */
    protected List<Criteria> oredCriteria;

    public SimulationExaminationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * e_simulation_examination 2018-08-27
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andExaminationNameIsNull() {
            addCriterion("examination_name is null");
            return (Criteria) this;
        }

        public Criteria andExaminationNameIsNotNull() {
            addCriterion("examination_name is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationNameEqualTo(String value) {
            addCriterion("examination_name =", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameNotEqualTo(String value) {
            addCriterion("examination_name <>", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameGreaterThan(String value) {
            addCriterion("examination_name >", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameGreaterThanOrEqualTo(String value) {
            addCriterion("examination_name >=", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameLessThan(String value) {
            addCriterion("examination_name <", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameLessThanOrEqualTo(String value) {
            addCriterion("examination_name <=", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameLike(String value) {
            addCriterion("examination_name like", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameNotLike(String value) {
            addCriterion("examination_name not like", value, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameIn(List<String> values) {
            addCriterion("examination_name in", values, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameNotIn(List<String> values) {
            addCriterion("examination_name not in", values, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameBetween(String value1, String value2) {
            addCriterion("examination_name between", value1, value2, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationNameNotBetween(String value1, String value2) {
            addCriterion("examination_name not between", value1, value2, "examinationName");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdIsNull() {
            addCriterion("examination_dept_id is null");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdIsNotNull() {
            addCriterion("examination_dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdEqualTo(Integer value) {
            addCriterion("examination_dept_id =", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdNotEqualTo(Integer value) {
            addCriterion("examination_dept_id <>", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdGreaterThan(Integer value) {
            addCriterion("examination_dept_id >", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("examination_dept_id >=", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdLessThan(Integer value) {
            addCriterion("examination_dept_id <", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdLessThanOrEqualTo(Integer value) {
            addCriterion("examination_dept_id <=", value, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdIn(List<Integer> values) {
            addCriterion("examination_dept_id in", values, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdNotIn(List<Integer> values) {
            addCriterion("examination_dept_id not in", values, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdBetween(Integer value1, Integer value2) {
            addCriterion("examination_dept_id between", value1, value2, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andExaminationDeptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("examination_dept_id not between", value1, value2, "examinationDeptId");
            return (Criteria) this;
        }

        public Criteria andMajorIdIsNull() {
            addCriterion("major_id is null");
            return (Criteria) this;
        }

        public Criteria andMajorIdIsNotNull() {
            addCriterion("major_id is not null");
            return (Criteria) this;
        }

        public Criteria andMajorIdEqualTo(String value) {
            addCriterion("major_id =", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdNotEqualTo(String value) {
            addCriterion("major_id <>", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdGreaterThan(String value) {
            addCriterion("major_id >", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdGreaterThanOrEqualTo(String value) {
            addCriterion("major_id >=", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdLessThan(String value) {
            addCriterion("major_id <", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdLessThanOrEqualTo(String value) {
            addCriterion("major_id <=", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdLike(String value) {
            addCriterion("major_id like", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdNotLike(String value) {
            addCriterion("major_id not like", value, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdIn(List<String> values) {
            addCriterion("major_id in", values, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdNotIn(List<String> values) {
            addCriterion("major_id not in", values, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdBetween(String value1, String value2) {
            addCriterion("major_id between", value1, value2, "majorId");
            return (Criteria) this;
        }

        public Criteria andMajorIdNotBetween(String value1, String value2) {
            addCriterion("major_id not between", value1, value2, "majorId");
            return (Criteria) this;
        }

        public Criteria andPaperIdIsNull() {
            addCriterion("paper_id is null");
            return (Criteria) this;
        }

        public Criteria andPaperIdIsNotNull() {
            addCriterion("paper_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaperIdEqualTo(Integer value) {
            addCriterion("paper_id =", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotEqualTo(Integer value) {
            addCriterion("paper_id <>", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdGreaterThan(Integer value) {
            addCriterion("paper_id >", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_id >=", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdLessThan(Integer value) {
            addCriterion("paper_id <", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdLessThanOrEqualTo(Integer value) {
            addCriterion("paper_id <=", value, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdIn(List<Integer> values) {
            addCriterion("paper_id in", values, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotIn(List<Integer> values) {
            addCriterion("paper_id not in", values, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdBetween(Integer value1, Integer value2) {
            addCriterion("paper_id between", value1, value2, "paperId");
            return (Criteria) this;
        }

        public Criteria andPaperIdNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_id not between", value1, value2, "paperId");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeIsNull() {
            addCriterion("examination_start_time is null");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeIsNotNull() {
            addCriterion("examination_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeEqualTo(Date value) {
            addCriterion("examination_start_time =", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeNotEqualTo(Date value) {
            addCriterion("examination_start_time <>", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeGreaterThan(Date value) {
            addCriterion("examination_start_time >", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("examination_start_time >=", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeLessThan(Date value) {
            addCriterion("examination_start_time <", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("examination_start_time <=", value, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeIn(List<Date> values) {
            addCriterion("examination_start_time in", values, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeNotIn(List<Date> values) {
            addCriterion("examination_start_time not in", values, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeBetween(Date value1, Date value2) {
            addCriterion("examination_start_time between", value1, value2, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("examination_start_time not between", value1, value2, "examinationStartTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeIsNull() {
            addCriterion("examination_end_time is null");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeIsNotNull() {
            addCriterion("examination_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeEqualTo(Date value) {
            addCriterion("examination_end_time =", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeNotEqualTo(Date value) {
            addCriterion("examination_end_time <>", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeGreaterThan(Date value) {
            addCriterion("examination_end_time >", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("examination_end_time >=", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeLessThan(Date value) {
            addCriterion("examination_end_time <", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("examination_end_time <=", value, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeIn(List<Date> values) {
            addCriterion("examination_end_time in", values, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeNotIn(List<Date> values) {
            addCriterion("examination_end_time not in", values, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeBetween(Date value1, Date value2) {
            addCriterion("examination_end_time between", value1, value2, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("examination_end_time not between", value1, value2, "examinationEndTime");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberIsNull() {
            addCriterion("examination_number is null");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberIsNotNull() {
            addCriterion("examination_number is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberEqualTo(Integer value) {
            addCriterion("examination_number =", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberNotEqualTo(Integer value) {
            addCriterion("examination_number <>", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberGreaterThan(Integer value) {
            addCriterion("examination_number >", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("examination_number >=", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberLessThan(Integer value) {
            addCriterion("examination_number <", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberLessThanOrEqualTo(Integer value) {
            addCriterion("examination_number <=", value, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberIn(List<Integer> values) {
            addCriterion("examination_number in", values, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberNotIn(List<Integer> values) {
            addCriterion("examination_number not in", values, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberBetween(Integer value1, Integer value2) {
            addCriterion("examination_number between", value1, value2, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("examination_number not between", value1, value2, "examinationNumber");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongIsNull() {
            addCriterion("examination_time_long is null");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongIsNotNull() {
            addCriterion("examination_time_long is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongEqualTo(Integer value) {
            addCriterion("examination_time_long =", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongNotEqualTo(Integer value) {
            addCriterion("examination_time_long <>", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongGreaterThan(Integer value) {
            addCriterion("examination_time_long >", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongGreaterThanOrEqualTo(Integer value) {
            addCriterion("examination_time_long >=", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongLessThan(Integer value) {
            addCriterion("examination_time_long <", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongLessThanOrEqualTo(Integer value) {
            addCriterion("examination_time_long <=", value, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongIn(List<Integer> values) {
            addCriterion("examination_time_long in", values, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongNotIn(List<Integer> values) {
            addCriterion("examination_time_long not in", values, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongBetween(Integer value1, Integer value2) {
            addCriterion("examination_time_long between", value1, value2, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationTimeLongNotBetween(Integer value1, Integer value2) {
            addCriterion("examination_time_long not between", value1, value2, "examinationTimeLong");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionIsNull() {
            addCriterion("examination_attention is null");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionIsNotNull() {
            addCriterion("examination_attention is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionEqualTo(String value) {
            addCriterion("examination_attention =", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionNotEqualTo(String value) {
            addCriterion("examination_attention <>", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionGreaterThan(String value) {
            addCriterion("examination_attention >", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionGreaterThanOrEqualTo(String value) {
            addCriterion("examination_attention >=", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionLessThan(String value) {
            addCriterion("examination_attention <", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionLessThanOrEqualTo(String value) {
            addCriterion("examination_attention <=", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionLike(String value) {
            addCriterion("examination_attention like", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionNotLike(String value) {
            addCriterion("examination_attention not like", value, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionIn(List<String> values) {
            addCriterion("examination_attention in", values, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionNotIn(List<String> values) {
            addCriterion("examination_attention not in", values, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionBetween(String value1, String value2) {
            addCriterion("examination_attention between", value1, value2, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationAttentionNotBetween(String value1, String value2) {
            addCriterion("examination_attention not between", value1, value2, "examinationAttention");
            return (Criteria) this;
        }

        public Criteria andExaminationStateIsNull() {
            addCriterion("examination_state is null");
            return (Criteria) this;
        }

        public Criteria andExaminationStateIsNotNull() {
            addCriterion("examination_state is not null");
            return (Criteria) this;
        }

        public Criteria andExaminationStateEqualTo(Integer value) {
            addCriterion("examination_state =", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateNotEqualTo(Integer value) {
            addCriterion("examination_state <>", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateGreaterThan(Integer value) {
            addCriterion("examination_state >", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("examination_state >=", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateLessThan(Integer value) {
            addCriterion("examination_state <", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateLessThanOrEqualTo(Integer value) {
            addCriterion("examination_state <=", value, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateIn(List<Integer> values) {
            addCriterion("examination_state in", values, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateNotIn(List<Integer> values) {
            addCriterion("examination_state not in", values, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateBetween(Integer value1, Integer value2) {
            addCriterion("examination_state between", value1, value2, "examinationState");
            return (Criteria) this;
        }

        public Criteria andExaminationStateNotBetween(Integer value1, Integer value2) {
            addCriterion("examination_state not between", value1, value2, "examinationState");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNull() {
            addCriterion("dept_id is null");
            return (Criteria) this;
        }

        public Criteria andDeptIdIsNotNull() {
            addCriterion("dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeptIdEqualTo(Integer value) {
            addCriterion("dept_id =", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotEqualTo(Integer value) {
            addCriterion("dept_id <>", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThan(Integer value) {
            addCriterion("dept_id >", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("dept_id >=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThan(Integer value) {
            addCriterion("dept_id <", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdLessThanOrEqualTo(Integer value) {
            addCriterion("dept_id <=", value, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdIn(List<Integer> values) {
            addCriterion("dept_id in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotIn(List<Integer> values) {
            addCriterion("dept_id not in", values, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdBetween(Integer value1, Integer value2) {
            addCriterion("dept_id between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDeptIdNotBetween(Integer value1, Integer value2) {
            addCriterion("dept_id not between", value1, value2, "deptId");
            return (Criteria) this;
        }

        public Criteria andDisFlagIsNull() {
            addCriterion("dis_flag is null");
            return (Criteria) this;
        }

        public Criteria andDisFlagIsNotNull() {
            addCriterion("dis_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDisFlagEqualTo(Integer value) {
            addCriterion("dis_flag =", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagNotEqualTo(Integer value) {
            addCriterion("dis_flag <>", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagGreaterThan(Integer value) {
            addCriterion("dis_flag >", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("dis_flag >=", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagLessThan(Integer value) {
            addCriterion("dis_flag <", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagLessThanOrEqualTo(Integer value) {
            addCriterion("dis_flag <=", value, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagIn(List<Integer> values) {
            addCriterion("dis_flag in", values, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagNotIn(List<Integer> values) {
            addCriterion("dis_flag not in", values, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagBetween(Integer value1, Integer value2) {
            addCriterion("dis_flag between", value1, value2, "disFlag");
            return (Criteria) this;
        }

        public Criteria andDisFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("dis_flag not between", value1, value2, "disFlag");
            return (Criteria) this;
        }
    }

    /**
     * e_simulation_examination
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * e_simulation_examination 2018-08-27
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}